package com.zengqingfa.exercise.jvm;

/**
 * @author zengqingfa
 * @className ReferenceCountingGc
 * @description
 * @create 2021/11/6 16:43
 */
public class ReferenceCountingGc {

    Object instance = null;

    public static void main(String[] args) {
        ReferenceCountingGc objA = new ReferenceCountingGc();
        ReferenceCountingGc objB = new ReferenceCountingGc();
        objA.instance = objB;
        objB.instance = objA;
        objA = null;
        objB = null;
    }
}